package com.jt.dify.model;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 大模型对话记录详情 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Accessors(chain = true)
@Data
@EqualsAndHashCode(callSuper = true)
@Table(value = "chat_record_info")
public class ChatRecordInfo extends Model<ChatRecordInfo> implements Serializable {

    private static final long serialVersionUID = 567181365704061287L;

    /**
     * 主键
     */
    @Id
    @Column(value = "id")
    private Long id;

    /**
     * 会话ID
     */
    @Column(value = "record_id")
    private String recordId;

    /**
     * ask
     */
    @Column(value = "ask")
    private String ask;

    /**
     * answer
     */
    @Column(value = "answer")
    private String answer;

    /**
     * 引用的文件名称，以逗号合开
     */
    @Column(value = "file_name")
    private String fileName;

    /**
     * 创建时间
     */
    @Column(value = "create_time", onInsertValue = "now()")
    private Date createTime;

}
